AC_INIT([gopsed], 0.1)
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE

AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
PKG_PROG_PKG_CONFIG
AX_BOOST_BASE([1.33.1])

PKG_CHECK_MODULES([LIBXML], [libxml++-2.6 >= 2.2.0],
    [
        LIBXML_LIBS="`$PKG_CONFIG --libs libxml++-2.6`"
        LIBXML_CFLAGS="`$PKG_CONFIG --cflags libxml++-2.6`"
    ])
AC_SUBST(LIBXML_LIBS)
AC_SUBST(LIBXML_CFLAGS)
PKG_CHECK_MODULES([LIBXSLT], [libxslt >= 1.1.22],
    [
        LIBXSLT_LIBS="`$PKG_CONFIG --libs libxslt`"
        LIBXSLT_CFLAGS="`$PKG_CONFIG --cflags libxslt`"
    ])
AC_SUBST(LIBXSLT_LIBS)
AC_SUBST(LIBXSLT_CFLAGS)
PKG_CHECK_MODULES([LIBZIP], [libzip >= 0.8],
    [
        LIBZIP_LIBS="`$PKG_CONFIG --libs libzip`"
        LIBZIP_CFLAGS="`$PKG_CONFIG --cflags libzip`"
    ])
AC_SUBST(LIBZIP_LIBS)
AC_SUBST(LIBZIP_CFLAGS)
PKG_CHECK_MODULES([LIBGLADEMM], [libglademm-2.4 >= 2.6.4],
    [
        LIBGLADEMM_LIBS="`$PKG_CONFIG --libs libglademm-2.4`"
        LIBGLADEMM_CFLAGS="`$PKG_CONFIG --cflags libglademm-2.4`"
    ])
AC_SUBST(LIBGLADEMM_LIBS)
AC_SUBST(LIBGLADEMM_CFLAGS)

AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
